package cn.haoma.base.sql;

import android.view.View;
import android.view.animation.TranslateAnimation;
import android.widget.EditText;

/**
 * Created by ilioili on 2015/6/10.
 */
public class EditTextUtil {
    public static boolean checkNull(EditText editText) {
        return editText.getText().toString().trim().equals("");
    }

    public static void shakeView(View view) {
        TranslateAnimation translateAnimation = new TranslateAnimation(-10, 10, 0, 0);
        translateAnimation.setDuration(50);
        translateAnimation.setRepeatCount(10);
        view.startAnimation(translateAnimation);
    }
}
